<%@ page import="com.ws.utils.Res" %><%--
  Created by IntelliJ IDEA.
  User: lufei
  Date: 2025/3/24
  Time: 15:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>修改用户</title>
    <link rel="stylesheet" href="${ pageContext.request.contextPath}/admin/bootstrap/css/bootstrap.min.css">
    <script src="${ pageContext.request.contextPath}/admin/bootstrap/js/jquery-2.1.0.min.js"></script>
    <script src="${ pageContext.request.contextPath}/admin/bootstrap/js/bootstrap.min.js"></script>
    <style>
       .cus-container{
           width: 1368px;
       }
       #user-add .modal-content{
       	padding: 0 20px 20px;	
       }
       #user-edit .modal-content{
       	padding: 0 20px 20px;	
       }
    </style>
</head>
<body>
${user}
    <div class="container cus-container">
        <!-- 修改用户模态框 -->
        <h3 class="text-center">修改用户</h3>
        <form action="${ pageContext.request.contextPath}/homeUsers/update" method="post" enctype="multipart/form-data">
            <div class="form-group">
                <label for="userid">编号：</label>
                <input type="text" class="form-control"  id="userid" readonly name="user_id" value="${user.user_id}">
            </div>
            <div class="form-group">
                <label for="user">姓名：</label>
                <input type="text" class="form-control" name="user_name" value="${user.user_name}">
            </div>
            <div class="form-group">
                <label for="pass">密码：</label>
                <input type="password" class="form-control" name="user_pass" value="${user.user_pass}">
            </div>
            <div class="form-group">
                <label for="phone">手机号：</label>
                <input type="text" class="form-control" name="user_phone" id="phone" value="${user.user_phone}" placeholder="请输入密码">
            </div>
            <div class="form-group">
                <label for="birthday">生日：</label>
                <input type="date" class="form-control" name="user_date" value="${user.user_date}" placeholder="请输入出生日期">
            </div>
            <div class="form-group">
                <label for="tx">头像：</label>
                <input type="file" class="form-control" name="image">
                <img src="<%=Res.fileUrl%>${user.user_tx}" width="50px" height="50px">
                <input type="hidden" class="form-control" name="tx" value="${user.user_tx}">
            </div>
            <div class="text-center">
                <button type="submit" class="btn btn-primary">修改</button>
            </div>
        </form>
    </div>
</body>
</html>